package com.apps.java.javanote02;

public class _10继承Zi extends _10继承Fu{
    private int age = 20;

    public _10继承Zi() {
        super();
        System.out.println("子类无参构造方法被调用");
    }

    public _10继承Zi(int age) {
        super(50);
        this.age = age;
        System.out.println("子类带参构造方法被调用");
    }

    public void show(){
        int age = 30;
        System.out.println(age);
        System.out.println(this.age);
        System.out.println(super.age);
    }

}
